package com.dujie.listener;

import javax.servlet.ServletContext;
import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

public class MyListener implements ServletContextListener{

	@Override
	public void contextDestroyed(ServletContextEvent event) {
		ServletContext servletContext = event.getServletContext();
		String contextConfigValue = servletContext.getInitParameter("contextConfigLocation");
		System.out.println("================自定义监听器=====================");
		System.out.println(contextConfigValue);
		
		
		System.out.println("================自定义监听器=====================");
		
	}

	@Override
	public void contextInitialized(ServletContextEvent event) {
		// TODO Auto-generated method stub
		
	}

}
